package com.wn.user.service;

import com.wn.common.entity.Coordinate;
import com.wn.common.entity.MyRsp;
import com.wn.common.pojo.AreaVillage;

import java.util.List;

/**
 * @BelongsProject: shared_parking
 * @BelongsPackage: com.wn.user.service
 * @Author: 廖刚
 * @CreateTime: 2020-06-18 11:13
 * @Description:
 */
public interface AreaService {


    //根据地区名得到地区下面所有的小区
    List<AreaVillage> getVillageByAreaName(String aName);

    //根据父id得到下面所有的小区
    List<AreaVillage> getVillageByAId(String aid);


    //根据小区名称获取坐标
    MyRsp getAreaByName(AreaVillage areaVillage);

    //计算出和用户最近的那个小区和地区
    MyRsp getCoordinate(Coordinate coordinate);

    //动态查询地区小区表
    MyRsp getListByAreaVillage(AreaVillage areaVillage);

}
